<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>服务器端响应处理</title>
</head>
<body>
    <script>
        const express = require('express')
        const app = express()
        const port = 3000
        
        app.get('/data.txt', (req, res) => res.send('Hello Ajax!'))
        app.listen(port, () => console.log(`Example app listening on port ${port}!`))
    </script>
</body>
</html>